<template>
	<view class="page">
		<view class="code-get" v-if="!isSetting">
			<view class="phone">
				<text>请输入188****8888短信验证码</text>
			</view>
			<view class="code">
				<input type="tel" maxlength="6" placeholder="请输入短信验证码">
				<text>获取验证码</text>
			</view>
			<view class="btn" @click="isSetting = true">
				<text>下一步</text>
			</view>
		</view>
		<view class="setting-password" v-else>
			<view class="inpu-password">
				<text>设置密码</text>
				<input type="password" placeholder="请输入要设置的密码" />
				<text class="iconfont icon-eye-on icon"></text>
			</view>
			<view class="btn">
				<text>确认</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isSetting: false,
			};
		}
	}
</script>

<style scoped lang="scss">
	.page{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #f6f6f6;
}

.code-get{
	width: 100%;
	height: 400rpx;
	background-color: #FFFFFF;
	border-radius: 0 0 20rpx 20rpx;
	.phone{
		display: flex;
		align-items: center;
		padding: 0 4%;
		height: 100rpx;
		text{
			font-size: 28rpx;
			color: #222222;
		}
	}
	.code{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 4%;
		height: 100rpx;
		border-bottom: 2rpx solid #f6f6f6;
		input{
			width: 70%;
			height: 100%;
			color: #222222;
			font-size: 28rpx;
		}
		text{
			font-size: 28rpx;
			color: #222222;
		}
	}
	.btn{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 90%;
		height: 70rpx;
		margin: 40rpx auto;
		background: linear-gradient(to right,$base,$change-clor);
		border-radius: 70rpx;
		box-shadow: 0 10rpx 10rpx $base;
		text{
			color: #FFFFFF;
			font-size: 28rpx;
		}
	}
}

.setting-password{
	width: 100%;
	height: 200rpx;
	background-color: #FFFFFF;
	border-radius: 0 0 20rpx 20rpx;
	.inpu-password{
		display: flex;
		align-items: center;
		padding: 0 4%;
		height: 100rpx;
		border-bottom: 2rpx solid #f6f6f6;
		text{
			color: #959595;
			font-size: 28rpx;
		}
		input{
			margin-left: 20rpx;
			color: #222222;
			font-size: 28rpx;
		}
		.icon{
			margin-left: 20rpx;
		}
	}
	.btn{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 90%;
		height: 70rpx;
		margin: 0rpx auto;
		background: linear-gradient(to right,$base,$change-clor);
		border-radius: 70rpx;
		box-shadow: 0 10rpx 10rpx $base;
		text{
			color: #FFFFFF;
			font-size: 28rpx;
		}
	}
}
</style>
